package com.cxyzy.feedbackdemo

import android.app.Activity
import android.app.Dialog
import android.widget.Toast
import kotlinx.android.synthetic.main.dialog_feedback.*


class FeedbackDialog(val activity: Activity) : Dialog(activity) {
    init {
        setContentView(R.layout.dialog_feedback)
        cancelTv.setOnClickListener { dismiss() }
        confirmTv.setOnClickListener {
            Toast.makeText(this.activity, context.getString(R.string.submit), Toast.LENGTH_SHORT).show()
            dismiss()
        }
    }

}
